<?php
/**
 * Created by PhpStorm.
 * User: terry
 * Date: 2018/10/12
 * Time: 上午11:26
 */

namespace AdminBundle\RBAC;


abstract class Rule
{
    /**
     * @var string name of the rule
     */
    public $name;

    /**
     * @var \DateTime
     */
    public $createdAt;

    /**
     * @var \DateTime
     */
    public $updatedAt;

    /**
     * @param $user
     * @param $item
     * @param $params
     * @return mixed
     */
    abstract public function execute($user, $item, $params);
}